<!--<?php
print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>显示地图</title>  
<style type="text/css">
html,body,ul,li{margin:0; padding:0}
body{font-size:12px; color:#555; font-family:\5b8b\4f53;}
ul{list-style:none}
em{font-style:normal;}
.map-search{}
.map-search li{height:23px; line-height:23px; padding:3px 0; overflow:hidden}
.map-search li a,.map-search li em,.map-search li label,.map-search li input,.map-search li button{float:left}
.map-search li em{font-weight:bold; margin-right:3px;}
.map-search li a{color:#1078b6}
.map-search li a.change{margin:0 8px;width:23px; height:23px; overflow:hidden; text-indent:-99em; background:url(mode/house/images/ico-change.gif) no-repeat 0 0;}

.map-search label{margin-right:18px;}
.map-search label.label-for{margin-right:5px}
.map-search input[type=checkbox]{vertical-align:middle; margin:5px 5px 0 0;}
.map-search input.text{border-width:2px; width:114px; height:15px; *height:17px; padding:2px 3px 0; *padding:0 3px; *line-height:17px;}
.map-search button{margin-left:10px; height:20px; width:104px; text-indent:-99em; overflow:hidden; cursor:pointer; border:none; background:url(mode/house/images/btn-search.gif) no-repeat 0 0;}

#view-map{margin:12px 0 25px; width:680px; overflow:hidden}
</style>
<script type="text/javascript" src="http://app.mapabc.com/apis?&t=flashmap&v=2.3.2&key={$house_mapkey}"></script>   
<script type="text/javascript" src="mode/house/js/housemap-utility.js"></script>
<script type="text/javascript" src="mode/house/js/housemap.js"></script>
<script type="text/javascript" src="mode/house/js/housemap-drivesearch.js"></script>
<script type="text/javascript" src="mode/house/js/housemap-keywordsearch.js"></script>
<script type="text/javascript" src="mode/house/js/city_u.js"></script>
<script type="text/javascript">
function  showHouseMap(){
	var mapPointObj = new mapPoint();
	mapPointObj.point_x = '$point_x';
	mapPointObj.point_y = '$point_y';
	mapPointObj.mapZoom = '$mapZoom';
	mapPointObj.pointTip = getPointTipContents('$sContent[saletele]','$sContent[aveprice]','$sContent[address]','$hid');
	mapPointObj.pointTitle = '$pointTitle';
	mapPointObj.scaleMap = 'hid';
	mapPointObj.toolbarMap = 'hid';
	mapPointObj.overviewMap = 'show';
	mapInit(mapPointObj);
}

var searchPointsTag = '';
function searchHoseByKeywords(keyword,research,tag){
	if (keyword == null || keyword == '' || keyword == 'undefined') {
		alert("关键字不能为空");
		return;
	}
	/* 清除驾车线路查询结果 */
	if(mapObj != null && mapObj != 'undefined'){
		var driveRoute = mapObj.getOverlayById('driveRoute');
		if(driveRoute){
			mapObj.removeOverlay(driveRoute);
		}
	}else{
		parent.showDialog('error','地图加载失败',2);
	}
	if (research) {
		//var mapSearcherObj = new mapSearcher();
		mapSearcherObj.searchResultTag = tag;
		searchPointsTag = tag;
		mapSearcherObj.keyword = keyword;
		mapSearcherObj.citycode = city.ctn2c('$house_mapcity');
		mapSearcherObj.centerKeyword = '$pointTitle';
		mapSearcherObj.searchType = 'centerKeyword';
		mapSearcherObj.searchResultShowInner = false;
		mapSearcherObj.searchPointBykeywords();
	}else{
		var arr = mapObj.getOverlaysByType(MOverlay.TYPE_MARKER);
		for(var i = 0; i < arr.length; i++){
			var markerObjId = arr[i].id;
			if(markerObjId.match(tag)){
				mapObj.removeOverlay(arr[i]);
			}
		}
	}
}

function showSearchPoints(){
	if (this.request.responseText != '' && this.request.responseText != null && this.request.responseText != 'undefined') {
		var result = this.request.responseText;
		result = parent.JSONParse(result);
		var mapSearcherObj = new mapSearcher();
		mapSearcherObj.showSearchResultList1(result);
	}
}
</script>
</head>
<body onload="showHouseMap()">
<form name="FORM1">
<ul class="map-search cc">
	<li><em>周边查询：</em>
		<label><input type="checkbox" name="e-type" onclick="if(this.checked) parent.ajax.send('{$houseBaseUrl}q=housemap&hid=$hid&step=search&type=near','',showSearchPoints);"/> 周边楼盘</label>
		<label><input type="checkbox" name="e-type" value="卖场" onclick="searchHoseByKeywords(this.value,this.checked,'mc')"/> 卖场</label>
		<label><input type="checkbox" name="e-type" value="餐饮" onclick="searchHoseByKeywords(this.value,this.checked,'cy')"/> 餐饮</label>
		<label><input type="checkbox" name="e-type" value="银行" onclick="searchHoseByKeywords(this.value,this.checked,'yh')"/> 银行</label>
		<label><input type="checkbox" name="e-type" value="学校" onclick="searchHoseByKeywords(this.value,this.checked,'xu')"/> 学校</label>
		<label><input type="checkbox" name="e-type" value="医院" onclick="searchHoseByKeywords(this.value,this.checked,'yi')"/> 医院</label>
		<a href="{$houseBaseUrl}q=housemap&hid=$hid&step=searchinfo" target="_blank">更多周边信息查询</a>
	</li>
	<li><em>公交驾车：</em>
		<form name="drivline">
		<input type="hidden" name="driveLine_citynameS" id="driveLine_citynameS" value="{$house_mapcity}" />
		<input type="hidden" name="driveLine_citynameS" id="driveLine_citynameE" value="{$house_mapcity}" />
		<label class="label-for" for="driveLine_startname">起点</label>
		<input class="text" type="text" id="driveLine_startname" name="driveLine_startname" />
		<a class="change" title="起点、终点交换" href="javascript:;" onclick="changePoints()">交换</a>
		<label class="label-for" for="driveLine_endname">终点</label>
		<input class="text" type="text" id="driveLine_endname" name="driveLine_endname" />
		<button type="button" onclick="driveLineSearch()">查询线路</button>
		</form>
	</li>
</ul>
</form>
<div id="view-map">
<div id="map" style="width: 100%; height:285px"></div>
</div>
<div id="showerror" style="display: none;"></div>
</body>  
</html>
<!--
EOT;
?>-->




